<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{commons/public::common-public}">
<header th:replace="~{commons/header2::common-header2(activeUrl='main')}"></header>
<meta charset="UTF-8">
<title>购物车信息</title>
</head>
<style>
body{
	font-size:16px;
}
table{
		width: 60%;
		border:2px solid #01518e;
		border-collapse:collapse;
	}
td{
		border:1px solid #6fa6f9;
	}
h1{
	color:#f3efef;
	}
h4{
	font-size:15px;
	font-weight:bold;
	}
.div-t{ 
	border-radius:15px;
	background:rgba(180,180,180, .4);
	width:1150px;
	height:550px;
	padding:5px; 
	position:absolute;
	top:18%;
	left:16%;
	margin:auto;
	} 
table{
	position:absolute;
	top:6%;
	left:8%;
	width:85%;
	height:50%;
	color:#000;
}
a{
	font-size:23px;
	color:#f3efef;
	text-decoration: none;
}
table td a{
 	color:#6fa6f9;
	font-size:15px;
}
.botton{
	border-radius:8px;
	width:45px;
	height:25px;
	
}
img{
	width:70px;
	height:75px;
}
</style>
<body background="/fonts/背景.png" alt="背景" style="background-repeat: no-repeat;background-size: 100%;background-attachment: fixed;">
<br>
	<h1 align="center">全部鲜花</h1>
	<div class="div-t">
	<table>
		<tr>
			<td align="center">鲜花编号</td>
			<td align="center">鲜花名称</td>
			<td align="center">鲜花图片</td>
			<td align="center">商家</td>
			<td align="center">单价</td>
			<td align="center">数量</td>
			<td align="center">操作</td>
		</tr>
		 
		<tr th:each="s:${shopList}">
				<td th:text="${s.flowerNo }" align="center"></td>
				<td th:text="${s.flowerName }"></td>
				<td align="center"><img th:src="${s.flowerImage}"></td>
				<td th:text="${s.seller }" align="center"></td>
				<td th:text="${s.price }" align="center"></td>
				<td th:text="${s.quantity }" align="center"></td>
				<td align="center">
		 			<a th:href="@{/shop/update(flowerNo=${s.flowerNo})}" align="center"><input type="submit"  value="修改" class="botton"></a>
		 			<a th:href="@{/shop/delete(flowerNo=${s.flowerNo})}" align="center"><input type="submit"  value="删除" class="botton"></a>
 				</td>
		</tr>
		</c:forEach>
</table>
		<h4>共 : <td th:text="${size} "></td> 条数据 </h4> 
	</div>
</body>
</html>
